package com.wlyuan.open.scanner.repository;

import com.wlyuan.open.scanner.dao.entity.BalanceCheckDetailsDO;
import com.wlyuan.open.scanner.dao.entity.PayDO;

import java.util.List;

/**
 * @author lijing
 * @description
 */
public interface PayRepository {

    /**
     * 初始化数据
     */
    void init();

    void initTime(String startTime, String endTime);

    /**
     * 获取信息
     *
     * @return
     */
    PayDO getByUpOrDown(Long sourceId);

    /**
     * 保存
     *
     * @param checkId
     * @param checkOwnerId
     * @param checkOrderId
     * @param tenantId
     * @param type
     */
    void save(Long checkId, Long checkOwnerId, Long checkOrderId, Long tenantId, Integer type);

    /**
     * 获取
     *
     * @param orderId
     * @param type
     * @return
     */
    List<BalanceCheckDetailsDO> getByOrderIdAndType(List<Long> orderId, Integer type);

    List<Long> getTime(String startTime, String endTime);

    List<Long> getTenantIdTime(Long tenantId, String startTime, String endTime);
}
